//
//  DataEngine.h
//  AutoHome
//
//  Created by wqh on 15-5-11.
//  Copyright (c) 2015年 Wqh. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^SuccessBlockType) (id respondsData);
typedef void(^FailedBlockType) (NSError *error);

@interface DataEngine : NSObject

+ (instancetype)sharedInstance;

/*
 * 搜索菜单
 */
- (void)requestSearchDataWithStr:(NSString *)str Page:(NSInteger )pageIndex succsee:(SuccessBlockType)success failed:(FailedBlockType)failed;

/**
 *  推荐菜单
 */
//普通详情接口
- (void)requestWebViewDataWithId:(NSNumber *)Id success:(SuccessBlockType)success failed:(FailedBlockType)failed;
- (void)requestSpecialWebViewDataWith:(NSString *)url id:(NSNumber*)Id success:(SuccessBlockType)success failed:(FailedBlockType)failed;
//快报菜单详情
- (void)requestNewsflahDetailDataWithId:(NSNumber *)Id success:(SuccessBlockType)success failed:(FailedBlockType)failed;
//最新页面 图片集详情数据请求
- (void)requestPicsDataWithId:(NSString *)id1 :(NSString *)id2 success:(SuccessBlockType)success failed:(FailedBlockType)failed;

/**
 * 找车菜单
 */
//对点击车牌后的页面数据进行请求；
- (void)requestBrandCarWithBrandId:(NSNumber *)brandId typeId:(NSInteger)typeId success:(SuccessBlockType)success failed:(FailedBlockType) failed;
//通过筛选条找查找符合的车系
- (void)requestCarListWithDictionary:(NSDictionary *)dict pageIndex:(NSInteger)page  Success:(SuccessBlockType)success failed:(FailedBlockType)failed;
//车型详细信息 报价接口
- (void)requestCarTypeDetailPriceWithSystemId:(NSNumber *)systemId typeId:(NSNumber *)typeId cityId:(NSNumber *)cityId Success:(SuccessBlockType)success failed:(FailedBlockType)failed;

//车型详细信息 报价接口
- (void)requestCarTypeDetailInfoWithTypeId:(NSNumber *)typeId cityId:(NSNumber *)cityId Success:(SuccessBlockType)success failed:(FailedBlockType)failed;

- (void)requestCarBrandPicDetailWithId:(NSString *)brandId success:(SuccessBlockType)success failed:(FailedBlockType)failed ;
#pragma mark 通过json解析数据
//解析车牌
- (NSMutableArray *)parseBrandData;
//解析车辆过滤信息
- (NSMutableDictionary *)parseCarOperationData;
@end
